﻿@model XiDianChangAn.OA.Model.WF_Instance

@{
    Layout = null;
}



<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>新建流程</title>
    <link href="~/Content/assets/lib/bootstrap/css/bootstrap-theme.min.css" rel="stylesheet" />
    <link href="~/Content/assets/lib/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
    <script src="~/Scripts/jquery-1.8.2.min.js"></script>
    <script src="~/Content/assets/lib/bootstrap/js/bootstrap.min.js"></script>
    <script src="~/Content/ueditor/ueditor.config.js"></script>
    <script src="~/Content/ueditor/ueditor.all.min.js"></script>
</head>
<body>
    <hr />
    @using (Html.BeginForm())
    {
        <input type="hidden" name="Id" value="@ViewBag.Id" />
        <table class="table table-hover table-bordered">
            <tr class="active">
                <th>
                    流程类型:
                </th>
                <td>
                    @ViewBag.Name
                </td>
            </tr>
            <tr>
                <th>
                    流程描述：
                </th>
                <td>
                    @Html.Raw(@ViewBag.Desc)
                </td>
            </tr>
            <tr class="info">
                <th>
                    流程名称：
                </th>
                <td>
                    @Html.EditorFor(model => model.InstanceName, new { htmlAttributes = new { @class = "form-control", @style = "width:200px" } })
                </td>
            </tr>
            <tr class="info">
                <th>
                    流转到：
                </th>
                <td>
                    @Html.DropDownList("UserList")
                </td>
            </tr>
            <tr class="info">
                <th>
                    申请内容：
                </th>
                <td>
                    @Html.TextAreaFor(model => model.Content, new { htmlAttributes = new { @class = "form-control" } })
                </td>
            </tr>
        </table>
        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="添加" id="Add" class="btn btn-default" />
            </div>
        </div>
    }
    <script type="text/javascript">
        $(document).ready(function () {
            $('select').addClass("form-control").width(100);
        })
        var fc = UE.getEditor("Content", {
            initialFrameWidth: 700,
            initialFrameHeight: 300
        });

    </script>
</body>
</html>
